import VueRouter from 'vue-router'
import My from '@/views/My.vue'
import Find from '@/views/Find.vue'
import Friend from '@/views/Friend.vue'
import Vue from 'vue'
Vue.use(VueRouter)
const router=new VueRouter({
  routes:[
    {path:'/find',component:Find},
    {path:'/My',component:My},
    {path:'/friend',component:Friend}
  ],
  linkActiveClass:'active',
  linkExactActiveClass:'exact-active'
})
export default router//导出router,让main导入接收